package com.sxhalo.manage.map;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * TaskLog entity. @author MyEclipse Persistence Tools
 */

public class TaskLog implements java.io.Serializable {

	// Fields

	private Integer taskLogId;
	private Integer taskId;
	private String taskLogName;
	private String taskLogDescription;
	private SysUsers taskLogCreator;
	private Timestamp taskLogDate;
	private Integer taskLogType;
	private Integer taskLogPercent;

	// Constructors

	/** default constructor */
	public TaskLog() {
	}

	/** full constructor */
	public TaskLog(Integer taskId, String taskLogName,
			String taskLogDescription, SysUsers taskLogCreator,
			Timestamp taskLogDate, Integer taskLogType, Integer taskLogPercent) {
		this.taskId = taskId;
		this.taskLogName = taskLogName;
		this.taskLogDescription = taskLogDescription;
		this.taskLogCreator = taskLogCreator;
		this.taskLogDate = taskLogDate;
		this.taskLogType = taskLogType;
		this.taskLogPercent = taskLogPercent;
	}

	// Property accessors

	public Integer getTaskLogId() {
		return this.taskLogId;
	}

	public void setTaskLogId(Integer taskLogId) {
		this.taskLogId = taskLogId;
	}

	public Integer getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public String getTaskLogName() {
		return this.taskLogName;
	}

	public void setTaskLogName(String taskLogName) {
		this.taskLogName = taskLogName;
	}

	public String getTaskLogDescription() {
		return this.taskLogDescription;
	}

	public void setTaskLogDescription(String taskLogDescription) {
		this.taskLogDescription = taskLogDescription;
	}

	public SysUsers getTaskLogCreator() {
		return taskLogCreator;
	}

	public void setTaskLogCreator(SysUsers taskLogCreator) {
		this.taskLogCreator = taskLogCreator;
	}

	public String getCreateLogDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  
		return sdf.format(this.taskLogDate);
	}
	
	public Timestamp getTaskLogDate() {
		return this.taskLogDate;
	}

	public void setTaskLogDate(Timestamp taskLogDate) {
		this.taskLogDate = taskLogDate;
	}

	public Integer getTaskLogType() {
		return this.taskLogType;
	}

	public void setTaskLogType(Integer taskLogType) {
		this.taskLogType = taskLogType;
	}

	public Integer getTaskLogPercent() {
		return this.taskLogPercent;
	}

	public void setTaskLogPercent(Integer taskLogPercent) {
		this.taskLogPercent = taskLogPercent;
	}

}